import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //获取指数看板统计数据
  getIndexTable: (query) => api.post(`${config.interfaces.type5}portfolio-server/indexMonitor/getIndexTable`, query),
  //获取监控主表统计数据
  getList: (query) => api.post(`${config.interfaces.type5}portfolio-server/indexMonitor/list`, query),
  //获取行业看板统计数据
  getIndustryTable: (query) => api.post(`${config.interfaces.type5}portfolio-server/indexMonitor/getIndustryTable`, query),
  //获取指数名称
  queryByCode: (query) => api.get(`${config.interfaces.type5}portfolio-server/indexMonitor/queryByCode`, query),
};
